<?php 

trait A
{
    public $name = '安娜卡列林那';
    private $age = 14;
    protected $sex = '女';
}


class User
{
    use A;
    // public $name = '托尔';
}

$u = new User();
var_dump($u);
echo $u->name;
// echo $u->sex;
// echo $u->age;



